﻿using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;

namespace Flare
{
    partial class ItemTemplate
    {
        void Test(object sender, System.Windows.RoutedEventArgs e)
        {
            Debug.WriteLine("test ok");
            e.Handled = true;
            //try
            //{
            //    if (((sender as Button).TemplatedParent as ListBox).Items.Count > 1)
            //    {
            //        ((sender as Button).TemplatedParent as ListBox).SelectedIndex = -1;
            //    }
            //}
            //catch { }

        }
    }
}
